package com.tmall.testgen.common.bo.interact.back.syn;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @author haojia
 * @date 2014-07-04
 */
public class BaseInfo implements Serializable ,Comparable<BaseInfo> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8875235586097007061L;
	
	public final static int  TYPE_INTERCEPT=0;
	public final static int  TYPE_MOCK=1;
	public BaseInfo(){
		 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		 executeTime=  sdf.format(new Date());
	}
	/**
	 * 类名
	 */
	protected String className;
	
	/**
	 * 类名简称
	 */
	protected String classSimpleName;
	
	protected String beanName;
	public String getBeanName() {
		return beanName;
	}
	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}
	/**
	 * 方法名
	 */
	protected String methodName;
	
	/**
	 * 方法参数
	 */
	protected String methodParamContent;
	
	/**
	 * 参数名称
	 */
	protected List<String> paramNames;
	
	
	/**
	 * 0：拦截信息  1：mock信息
	 */
	protected int type;
	
	/**
	 * 异常
	 */
	protected String exception;
	
	protected String executeTime;
	
	
	
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getClassSimpleName() {
		return classSimpleName;
	}

	public void setClassSimpleName(String classSimpleName) {
		this.classSimpleName = classSimpleName;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getMethodParamContent() {
		return methodParamContent;
	}

	public void setMethodParamContent(String methodParamContent) {
		this.methodParamContent = methodParamContent;
	}

	public List<String> getParamNames() {
		return paramNames;
	}

	public void setParamNames(List<String> paramNames) {
		this.paramNames = paramNames;
	}

	

	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}
	public String getExecuteTime() {
		return executeTime;
	}
	public void setExecuteTime(String executeTime) {
		this.executeTime = executeTime;
	}
	@Override
	public int compareTo(BaseInfo o) {
		return this.getExecuteTime().compareTo(o.getExecuteTime());
	}
	
	
	
	
}
